//
//  UIImage+Extend.m
//  网易彩票01
//
//  Created by Macx on 16/2/22.
//  Copyright © 2016年 Macx. All rights reserved.
//

#import "UIImage+Extend.h"

@implementation UIImage (Extend)

+(UIImage *)resizeImageWithImageName:(NSString *)imgName{
    UIImage *image=[UIImage imageNamed:imgName];
    CGFloat  top=image.size.height*0.5;
    CGFloat left=image.size.width*0.5;
    
    return [image resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, top, left)];
}
@end
